package com.bjpowernode.boss.web.model.query;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LoginQuery {
    @NotNull(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "用户名长度在6-20位之间")
    private String loginName;
    @NotNull(message = "密码不能为空")
    @Size(min = 32, max = 32, message = "密码格式错误")
    private String loginPwd;
}
